package org.uned.agonzalo16.bitacora.web.blog;

import org.hibernate.validator.constraints.NotBlank;
import org.uned.agonzalo16.bitacora.domain.Blog;

public class BlogForm {

	private Long id;

	@NotBlank
	private String name;

	private String description;

	public BlogForm() {
	}

	public BlogForm(Blog blog) {
		id = blog.getId();
		name = blog.getName();
		description = blog.getDescription();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
